<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>湖北大学 - 首页</title>
	<style>
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
			font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
		}

		body {
			background-color: #f5f5f5;
			color: #333;
			line-height: 1.6;
		}

		.container {
			width: 1200px;
			margin: 0 auto;
		}

		/* 头部样式 */
		#banner {
			background: linear-gradient(135deg, #1a4a9e, #2a6fd0);
			color: white;
			padding: 20px 0;
			box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		}

		.header-content {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.logo {
			display: flex;
			align-items: center;
		}

		.logo h1 {
			font-size: 36px;
			font-weight: bold;
			letter-spacing: 4px;
		}

		.logo span {
			font-size: 16px;
			margin-left: 10px;
			opacity: 0.9;
		}

		.nav {
			display: flex;
		}

		.nav a {
			color: white;
			text-decoration: none;
			margin-left: 25px;
			font-size: 16px;
			padding: 5px 10px;
			border-radius: 4px;
			transition: background 0.3s;
		}

		.nav a:hover {
			background: rgba(255, 255, 255, 0.2);
		}

		/* 轮播图样式 */
		#left {
			margin-top: 20px;
			height: 400px;
			background: #fff;
			border-radius: 8px;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
			overflow: hidden;
			position: relative;
		}

		.carousel {
			height: 100%;
			position: relative;
		}

		.carousel-inner {
			height: 100%;
			position: relative;
		}

		.carousel-item {
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			opacity: 0;
			transition: opacity 1s ease-in-out;
			background-size: cover;
			background-position: center;
		}

		.carousel-item.active {
			opacity: 1;
		}

		.carousel-caption {
			position: absolute;
			bottom: 30px;
			left: 0;
			right: 0;
			text-align: center;
			color: white;
			background: rgba(0, 0, 0, 0.5);
			padding: 15px;
		}

		.carousel-caption h3 {
			font-size: 24px;
			margin-bottom: 10px;
		}

		.carousel-indicators {
			position: absolute;
			bottom: 10px;
			left: 0;
			right: 0;
			text-align: center;
		}

		.carousel-indicators span {
			display: inline-block;
			width: 12px;
			height: 12px;
			border-radius: 50%;
			background: rgba(255, 255, 255, 0.5);
			margin: 0 5px;
			cursor: pointer;
		}

		.carousel-indicators span.active {
			background: white;
		}

		/* 内容区域样式 */
		#content {
			display: flex;
			gap: 20px;
			margin-top: 20px;
		}

		#center, #right {
			background: white;
			border-radius: 8px;
			padding: 20px;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		}

		#center {
			flex: 2;
		}

		#right {
			flex: 1;
		}

		.section-title {
			font-size: 22px;
			color: #1a4a9e;
			padding-bottom: 10px;
			margin-bottom: 15px;
			border-bottom: 2px solid #eaeaea;
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.section-title a {
			font-size: 14px;
			color: #666;
			text-decoration: none;
		}

		.section-title a:hover {
			color: #1a4a9e;
		}

		.news-list {
			list-style: none;
		}

		.news-list li {
			padding: 12px 0;
			border-bottom: 1px dashed #eaeaea;
			display: flex;
		}

		.news-list li:last-child {
			border-bottom: none;
		}

		.news-date {
			color: #888;
			width: 80px;
			flex-shrink: 0;
		}

		.news-title {
			flex: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.news-title a {
			color: #333;
			text-decoration: none;
		}

		.news-title a:hover {
			color: #1a4a9e;
		}

		.notice-list {
			list-style: none;
		}

		.notice-list li {
			padding: 12px 0;
			border-bottom: 1px dashed #eaeaea;
			display: flex;
			align-items: center;
		}

		.notice-list li:last-child {
			border-bottom: none;
		}

		.notice-icon {
			width: 8px;
			height: 8px;
			background: #e74c3c;
			border-radius: 50%;
			margin-right: 10px;
			flex-shrink: 0;
		}

		.notice-title {
			flex: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.notice-title a {
			color: #333;
			text-decoration: none;
		}

		.notice-title a:hover {
			color: #1a4a9e;
		}

		.notice-date {
			color: #888;
			font-size: 14px;
			flex-shrink: 0;
		}

		/* 页脚样式 */
		#foot {
			margin-top: 40px;
			background: #2c3e50;
			color: #ecf0f1;
			padding: 30px 0;
			text-align: center;
		}

		.footer-content {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.footer-links {
			display: flex;
			gap: 20px;
		}

		.footer-links a {
			color: #bdc3c7;
			text-decoration: none;
			font-size: 14px;
		}

		.footer-links a:hover {
			color: #ecf0f1;
		}

		.copyright {
			margin-top: 20px;
			font-size: 14px;
			color: #95a5a6;
		}

		.carousel-control {
			position: absolute;
			top: 50%;
			transform: translateY(-50%);
			width: 50px;
			height: 50px;
			background: rgba(0, 0, 0, 0.5);
			color: white;
			border: none;
			border-radius: 50%;
			font-size: 24px;
			cursor: pointer;
			z-index: 10;
			transition: background 0.3s;
		}

		.carousel-control:hover {
			background: rgba(0, 0, 0, 0.8);
		}

		.carousel-control.prev {
			left: 20px;
		}

		.carousel-control.next {
			right: 20px;
		}

	</style>
</head>
<body>
<!-- 头部 -->
<div id="banner">
	<div class="container header-content">
		<div class="logo">
			<h1>湖北大学</h1>
			<span>HUBEI UNIVERSITY</span>
		</div>
		<div class="nav">
			<a href="#">首页</a>
			<a href="#">学校概况</a>
			<a href="#">院系设置</a>
			<a href="#">人才培养</a>
			<a href="#">科学研究</a>
			<a href="#">招生就业</a>
			<a href="#">校园文化</a>
		</div>
	</div>
</div>

<div class="container">
    <!-- 轮播图 -->
    <div id="left">
        <div class="carousel">
            <div class="carousel-inner">
                <div class="carousel-item active"
                     style="background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://www.hubu.edu.cn/images/20251114.jpg');">
                    <div class="carousel-caption">
                        <h3>群众展演舞狮</h3>
                    </div>
                </div>
                <div class="carousel-item"
                     style="background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://www.hubu.edu.cn/images/2025102302.jpg');">
                    <div class="carousel-caption">
                        <h3>学习贯彻党的二十届四中全会</h3>
                    </div>
                </div>
                <div class="carousel-item"
                     style="background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://www.hubu.edu.cn/images/202511102.jpg');">
                    <div class="carousel-caption">
                        <h3>师生创新创业大赛</h3>
                    </div>
                </div>
            </div>

            <!-- 左右导航按钮 -->
            <button class="carousel-control prev">&#10094;</button>
            <button class="carousel-control next">&#10095;</button>

            <div class="carousel-indicators">
                <span class="active"></span>
                <span></span>
                <span></span>
            </div>
        </div>
    </div>
</div>


<div class="carousel-indicators">
	<span class="active"></span>
	<span></span>
	<span></span>
</div>
</div>
</div>

<!-- 内容区域 -->
<div id="content">
	<!-- 综合新闻 -->
	<div id="center">
		<div class="section-title">
			<span>综合新闻</span>
			<a href="#">更多 &gt;</a>
		</div>
		<ul class="news-list">
			<li>
				<div class="news-date">06-15</div>
				<div class="news-title"><a href="#">湖北大学与武汉市政府签署战略合作协议，共建高水平大学</a></div>
			</li>
			<li>
				<div class="news-date">06-12</div>
				<div class="news-title"><a href="#">我校学生在"挑战杯"全国大学生课外学术科技作品竞赛中荣获特等奖</a></div>
			</li>
			<li>
				<div class="news-date">06-08</div>
				<div class="news-title"><a href="#">湖北大学举办"长江论坛"学术活动周，百余位知名学者齐聚</a></div>
			</li>
			<li>
				<div class="news-date">06-05</div>
				<div class="news-title"><a href="#">我校新增两个博士学位授权一级学科，学科建设取得新突破</a></div>
			</li>
			<li>
				<div class="news-date">06-01</div>
				<div class="news-title"><a href="#">湖北大学校友会第三届会员代表大会顺利召开</a></div>
			</li>
			<li>
				<div class="news-date">05-28</div>
				<div class="news-title"><a href="#">我校举行"书香校园"读书节开幕式，倡导全民阅读</a></div>
			</li>
			<li>
				<div class="news-date">05-25</div>
				<div class="news-title"><a href="#">湖北大学与华为技术有限公司共建"智能计算联合实验室"</a></div>
			</li>
		</ul>
	</div>

	<!-- 通知公告 -->
	<div id="right">
		<div class="section-title">
			<span>通知公告</span>
			<a href="#">更多 &gt;</a>
		</div>
		<ul class="notice-list">
			<li>
				<div class="notice-icon"></div>
				<div class="notice-title"><a href="#">关于2023年暑假放假安排的通知</a></div>
				<div class="notice-date">06-18</div>
			</li>
			<li>
				<div class="notice-icon"></div>
				<div class="notice-title"><a href="#">湖北大学2023年本科招生章程发布</a></div>
				<div class="notice-date">06-15</div>
			</li>
			<li>
				<div class="notice-icon"></div>
				<div class="notice-title"><a href="#">关于举办2023年青年教师教学竞赛的通知</a></div>
				<div class="notice-date">06-12</div>
			</li>
			<li>
				<div class="notice-icon"></div>
				<div class="notice-title"><a href="#">图书馆暑期开放时间调整公告</a></div>
				<div class="notice-date">06-10</div>
			</li>
			<li>
				<div class="notice-icon"></div>
				<div class="notice-title"><a href="#">关于申报2023年度国家自然科学基金项目的通知</a></div>
				<div class="notice-date">06-08</div>
			</li>
			<li>
				<div class="notice-icon"></div>
				<div class="notice-title"><a href="#">校园网络安全维护通知</a></div>
				<div class="notice-date">06-05</div>
			</li>
		</ul>
	</div>
</div>
</div>

<!-- 页脚 -->
<div id="foot">
	<div class="container">
		<div class="footer-content">
			<div class="footer-links">
				<a href="#">学校首页</a>
				<a href="#">联系我们</a>
				<a href="#">网站地图</a>
				<a href="#">招聘信息</a>
				<a href="#">校长信箱</a>
			</div>
			<div class="contact-info">
				地址：湖北省武汉市武昌区友谊大道368号 邮编：430062
			</div>
		</div>
		<div class="copyright">
			© 2023 湖北大学 版权所有 | 鄂ICP备XXXXXXXX号 | 鄂公网安备 XXXXXXXX号
		</div>
	</div>
</div>

<script>
// 轮播图功能
document.addEventListener('DOMContentLoaded', function() {
    let currentSlide = 0;
    const slides = document.querySelectorAll('.carousel-item');
    const indicators = document.querySelectorAll('.carousel-indicators span');
    const slideCount = slides.length;
    // 获取左右导航按钮元素
    const prevButton = document.querySelector('.carousel-control.prev');
    const nextButton = document.querySelector('.carousel-control.next');

    function showSlide(index) {
        // 隐藏所有幻灯片
        slides.forEach(slide => {
            slide.classList.remove('active');
        });
        indicators.forEach(indicator => {
            indicator.classList.remove('active');
        });

        // 显示当前幻灯片
        slides[index].classList.add('active');
        indicators[index].classList.add('active');
        currentSlide = index;
    }

    // 自动轮播
    function nextSlide() {
        let nextIndex = (currentSlide + 1) % slideCount;
        showSlide(nextIndex);
    }

    // 前一张幻灯片
    function prevSlide() {
        let prevIndex = (currentSlide - 1 + slideCount) % slideCount;
        showSlide(prevIndex);
    }

    // 设置自动轮播
    let slideInterval = setInterval(nextSlide, 4000);

    // 点击指示器切换幻灯片
    indicators.forEach((indicator, index) => {
        indicator.addEventListener('click', function() {
            clearInterval(slideInterval);
            showSlide(index);
            slideInterval = setInterval(nextSlide, 4000);
        });
    });

    // 点击前进按钮(>) - 下一张
    nextButton.addEventListener('click', function() {
        clearInterval(slideInterval);
        nextSlide();
        slideInterval = setInterval(nextSlide, 4000);
    });

    // 点击后退按钮(<) - 上一张
    prevButton.addEventListener('click', function() {
        clearInterval(slideInterval);
        prevSlide();
        slideInterval = setInterval(nextSlide, 4000);
    });

    // 鼠标悬停时暂停轮播
    const carousel = document.querySelector('.carousel');
    carousel.addEventListener('mouseenter', function() {
        clearInterval(slideInterval);
    });

    carousel.addEventListener('mouseleave', function() {
        slideInterval = setInterval(nextSlide, 4000);
    });
});

</script>
</body>
</html>